package com.leo.foodmaster.admin.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import com.leo.foodmaster.commons.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 机构表
 * </p>
 *
 * @author Leo
 * @since 2021-06-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_organ")
@ApiModel(value="Organ对象", description="机构表")
public class Organ extends BaseEntity implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "公司状态：默认为0（正常）1（禁用）")
    private String status;

    @ApiModelProperty(value = "食材配送方式（以逗号分隔的字符串）")
    private String foodSupplyTypes;

    @ApiModelProperty(value = "逻辑删除标志：默认为0（正常）1（删除）")
    private Boolean delFlag;

    @ApiModelProperty(value = "机构地址")
    private String addr;

    @ApiModelProperty(value = "区县编码")
    private String areaCode;

    @ApiModelProperty(value = "区县名称")
    private String areaName;

    @ApiModelProperty(value = "城市编码")
    private String cityCode;

    @ApiModelProperty(value = "城市名称")
    private String cityName;

    @ApiModelProperty(value = "省编码")
    private String provinceCode;

    @ApiModelProperty(value = "省名称")
    private String provinceName;

    @ApiModelProperty(value = "机构类型：0（云食配）1（公司）2（学校）")
    private String type;

    @ApiModelProperty(value = "父机构id")
    private Long organId;

    @ApiModelProperty(value = "子公司数量")
    private Integer childNum;

    @ApiModelProperty(value = "机构简介")
    private String intro;

    @ApiModelProperty(value = "介绍图片")
    private String introImg;

    @ApiModelProperty(value = "统一信用码/营业执照")
    private String businessLicense;

    @ApiModelProperty(value = "营业照片照片")
    private String businessLicensePic;

    @ApiModelProperty(value = "其他图片，类型由前端定")
    private String otherPics;

    @ApiModelProperty(value = "企业愿景")
    private String visionPlanning;

    @ApiModelProperty(value = "企业发展核心")
    private String developmentModel;

    @ApiModelProperty(value = "企业理念")
    private String developmentIdea;

    @ApiModelProperty(value = "企业使命")
    private String developmentMission;

    @ApiModelProperty(value = "公司介绍视频")
    private String introVideoCom;

    @ApiModelProperty(value = "公司产品介绍")
    private String introVideoProd;

    @ApiModelProperty(value = "公司荣誉")
    private String honor;

    @ApiModelProperty(value = "管理模式")
    private String managementMode;

    @ApiModelProperty(value = "联系电话")
    private String contactTel;

    @ApiModelProperty(value = "食材配送方式列表")
    @TableField(exist = false)
    private String[] foodSupplyTypeArray;

    @ApiModelProperty(value = "子树列表")
    @TableField(exist = false)
    private List<Organ> children;
}
